from ConfigParser import *

def load_configfile():
    configdict = ConfigParser()
    configdict.read('frac.conf')
    analyse_conf = {}
    drect_conf = {}
    
    section = 'analyse'    
    for option in configdict.options(section):
        analyse_conf[option]=configdict.get(section,option)
    
    section = 'drect'
    for option in configdict.options(section):
        drect_conf[option]=configdict.get(section,option)

    return analyse_conf, drect_conf
